package com.telit.android.strategy;

import com.aliyuncs.exceptions.ClientException;


/**
 * @Auther amy
 * @Describe  发送验证码和校验验证码
 */
public interface SmsCodeStrategyInterface {

    /**
     * 发送短信
     * @param phone
     * @param code
     */
    String sendSms(String phone,String code) throws ClientException;

    /**
     * 校验code并进行逻辑校验
     * @param phone
     * @param code
     */
    void checkCode(String phone,String code,Long userId);
}
